package cn.edu.swpu.cins.u_chain.frontend.entity.persistence.user;

import cn.edu.swpu.cins.u_chain.frontend.entity.dto.user.ContactInfoView;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class LocationInfo {
    //省市县信息
    private int locationId;
    private String provinceId;
    private String cityId;
    private String countyId;

    public LocationInfo(ContactInfoView contactInfoView) {
        this.provinceId = contactInfoView.getProvinceId();
        this.cityId = contactInfoView.getCityId();
        this.countyId = contactInfoView.getCountyId();
    }
}
